package com.mvc4g.example.client.customer.actions;

import com.mvc4g.client.ActionInterface;
import com.mvc4g.client.Controller;
import com.mvc4g.client.Event;
import com.mvc4g.example.client.Constants;
import com.mvc4g.example.client.customer.views.CreateCustomerView;

public class HomeCustomerAction implements ActionInterface, Constants {

	@Override
	public void execute(Controller controller, Object form) {
		CreateCustomerView createView = (CreateCustomerView) controller
				.getView(CREATE_VIEW);
		controller.handleEvent(new Event(CHANGE_PAGE, createView));
		createView.init(null);
	}

}
